package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_purch_detail database table.
 * 
 */
@Entity
@Table(name="bme_purch_detail")
@NamedQuery(name="BmePurchDetail.findAll", query="SELECT b FROM BmePurchDetail b")
public class BmePurchDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private BigDecimal amount;

	@Column(name="ANNEX_FLAG")
	private int annexFlag;

	private String area;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	private BigDecimal mamount;

	private String mdesc;

	private BigDecimal mprice;

	private BigDecimal mquantity;

	private String munit;

	private BigDecimal tprice;

	private BigDecimal tamount;

	private String operator;

	@Column(name="PROCESS_AMOUNT")
	private BigDecimal processAmount;

	@Column(name="PROCESS_COLOR")
	private String processColor;

	@Column(name="PROCESS_FACTOR")
	private BigDecimal processFactor;

	@Column(name="PROCESS_QUANTITY")
	private BigDecimal processQuantity;

	@Column(name="PROCESS_SPECI")
	private String processSpeci;

	@Column(name="PROCESS_SUM")
	private BigDecimal processSum;

	@Column(name="PROCESS_PRICE")
	private BigDecimal processPrice;

	@Column(name="PROCESS_TECK")
	private String processTeck;

	@Column(name="PROCESS_UNIT")
	private String processUnit;

	private String speci;
	
	private String remarks;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="REQUIRED_DATE")
	private Date requiredDate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="RESP_DATE")
	private Date respDate;

	@Column(name="RESP_REMARKS")
	private String respRemarks;

	private BigDecimal squantity;

	//bi-directional many-to-one association to BmeMaterial
	@ManyToOne
	@JoinColumn(name="MID")
	private BmeMaterial bmeMaterial;

	//bi-directional many-to-one association to BmePurchOrder
	@ManyToOne
	@JoinColumn(name="PURCH_ID")
	private BmePurchOrder bmePurchOrder;

	public BmePurchDetail() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public int getAnnexFlag() {
		return this.annexFlag;
	}

	public void setAnnexFlag(int annexFlag) {
		this.annexFlag = annexFlag;
	}

	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public BigDecimal getMamount() {
		return this.mamount;
	}

	public void setMamount(BigDecimal mamount) {
		this.mamount = mamount;
	}

	public String getMdesc() {
		return this.mdesc;
	}

	public void setMdesc(String mdesc) {
		this.mdesc = mdesc;
	}

	public BigDecimal getMprice() {
		return this.mprice;
	}

	public void setMprice(BigDecimal mprice) {
		this.mprice = mprice;
	}

	public BigDecimal getMquantity() {
		return this.mquantity;
	}

	public void setMquantity(BigDecimal mquantity) {
		this.mquantity = mquantity;
	}

	public String getMunit() {
		return this.munit;
	}

	public void setMunit(String munit) {
		this.munit = munit;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public BigDecimal getProcessAmount() {
		return this.processAmount;
	}

	public void setProcessAmount(BigDecimal processAmount) {
		this.processAmount = processAmount;
	}

	public String getProcessColor() {
		return this.processColor;
	}

	public void setProcessColor(String processColor) {
		this.processColor = processColor;
	}

	public BigDecimal getProcessFactor() {
		return this.processFactor;
	}

	public void setProcessFactor(BigDecimal processFactor) {
		this.processFactor = processFactor;
	}

	public BigDecimal getProcessQuantity() {
		return this.processQuantity;
	}

	public void setProcessQuantity(BigDecimal processQuantity) {
		this.processQuantity = processQuantity;
	}

	public String getProcessSpeci() {
		return this.processSpeci;
	}

	public void setProcessSpeci(String processSpeci) {
		this.processSpeci = processSpeci;
	}

	public BigDecimal getProcessSum() {
		return this.processSum;
	}

	public void setProcessSum(BigDecimal processSum) {
		this.processSum = processSum;
	}

	public BigDecimal getProcessPrice() {
		return processPrice;
	}

	public void setProcessPrice(BigDecimal processPrice) {
		this.processPrice = processPrice;
	}

	public String getProcessTeck() {
		return this.processTeck;
	}

	public void setProcessTeck(String processTeck) {
		this.processTeck = processTeck;
	}

	public String getProcessUnit() {
		return this.processUnit;
	}

	public void setProcessUnit(String processUnit) {
		this.processUnit = processUnit;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Date getRequiredDate() {
		return this.requiredDate;
	}

	public void setRequiredDate(Date requiredDate) {
		this.requiredDate = requiredDate;
	}

	public Date getRespDate() {
		return this.respDate;
	}

	public void setRespDate(Date respDate) {
		this.respDate = respDate;
	}

	public String getRespRemarks() {
		return this.respRemarks;
	}

	public void setRespRemarks(String respRemarks) {
		this.respRemarks = respRemarks;
	}

	public BmeMaterial getBmeMaterial() {
		return this.bmeMaterial;
	}

	public void setBmeMaterial(BmeMaterial bmeMaterial) {
		this.bmeMaterial = bmeMaterial;
	}

	public BmePurchOrder getBmePurchOrder() {
		return this.bmePurchOrder;
	}

	public void setBmePurchOrder(BmePurchOrder bmePurchOrder) {
		this.bmePurchOrder = bmePurchOrder;
	}

	public BigDecimal getTprice() {
		return tprice;
	}

	public void setTprice(BigDecimal tprice) {
		this.tprice = tprice;
	}

	public BigDecimal getTamount() {
		return tamount;
	}

	public void setTamount(BigDecimal tamount) {
		this.tamount = tamount;
	}

	public BigDecimal getSquantity() {
		return squantity;
	}

	public void setSquantity(BigDecimal squantity) {
		this.squantity = squantity;
	}
	public String getSpeci() {
		return speci;
	}

	public void setSpeci(String speci) {
		this.speci = speci;
	}
}